﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Mapping.ByCode.Conformist;

namespace Nhibernate.GuitarStore.Common
{
    public class Guitar
    {
        public virtual Guid Id { get; set; }
        public virtual string Type { get; set; }

        IList<Inventory> Inventory { get; set; }
    }

    public class GuitarMap : ClassMapping<Guitar>
    {
        public GuitarMap()
        {
            Id<Guid>(x => x.Id, map =>
                {
                    map.Column("ID");
                });

            Property<string>(x => x.Type, map => map.Column("TYPE"));

        }
    }
}
